package com.qf.day07.poly.tuxing;

/**
 * 图形类
 * 父类
 */
public class TuXing {

    private String name;


    public double zc(){
        System.out.println("计算图形的周长");
        return -1;
    }

    public void area(){
        System.out.println("计算图形的面积");
    }


    public TuXing() {
    }

    public TuXing(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "TuXing{" +
                "name='" + name + '\'' +
                '}';
    }
}
